//
//  MemberSettingTableViewCell.m
//  location
//
//  Created by Dongxiang Xu on 2025/5/22.
//

#import "MemberSettingTableViewCell.h"

@interface MemberSettingTableViewCell ()

@property (nonatomic, strong) UIImageView *img;
@property (nonatomic, strong) UILabel *label;
@property (nonatomic, strong) UIImageView *box;

@end


@implementation MemberSettingTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.contentView.backgroundColor = RealWhiteColor;
        
        _img = [[UIImageView alloc] initWithFrame:CGRectMake(33, 14, 52, 52)];
        _img.layer.masksToBounds = YES;
        [_img.layer setCornerRadius:26];
        _img.backgroundColor = GraryLightColor;
        [self.contentView addSubview:_img];
        
        
        _label = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_img.frame)+18, 14, SCREEN_WIDTH-CGRectGetMaxX(_img.frame)-96, _img.height)];
        _label.textColor = RealBlackColor;
        _label.font = MEDIUM_FONT(16);
        [self.contentView addSubview:_label];
        
        _box = [[UIImageView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH-60, 29, 22, 22)];
        [_box.layer setBorderWidth:1];
        _box.layer.masksToBounds = YES;
        [_box.layer setCornerRadius:6];
        [self.contentView addSubview:_box];
        UIImageView *img = [[UIImageView alloc] initWithFrame:CGRectMake(4, 4, 14, 14)];
        [img setImage:[UIImage imageNamed:@"box_sel"]];
        [_box addSubview:img];
        
        _label.text = @"贝克汉姆";
        _box.backgroundColor = NormalMainColor;
        _box.layer.borderColor = NormalMainColor.CGColor;
        
    }
    return self;
}


@end
